/*
 * @Author       : huangzb
 * @Date         : 2024-01-25 20:01:08
 * @LastEditors  : huangzb
 * @LastEditTime : 2024-02-02 00:23:03
 * @Description  : 优惠券管理
 * @FilePath     : \PcBackend\src\api\couponsManage\index.js
 */

import api from "@/api";

export function queryCouponsApi(params) {
    return api.get("/tube/admin/queryCoupons", { params });
}

export function createCouponsApi(data) {
    return api.post("/tube/admin/createCoupons", data);
}

export function updateCouponsApi(data) {
    return api.put("/tube/admin/updateCoupons", data);
}

export function deleteCouponsApi(params) {
    return api.delete("/tube/admin/deleteCoupons", { params });
}